#region Summary

// 
// Owner : JackieHan 
// 
// Solution : LearnSolution
// 
// Project :Project
// 
// File : Account.cs
// 
// CopyRight : Copyright © 2010-2011 Skomart Corporation, All Rights Reserved 
// 
// Summary : Summary
// 
// History : 
//			2010-11-24 11:50:52	    Create 
// 

#endregion

#region Using

using System;
using System.Collections.Generic;

#endregion

namespace JackieHan.DotNet.NMockExample
{
    /// <summary> 
    /// Summary
    /// </summary>
    public class Account
    {
        private string number;
        private string currency;
        private double money;

        public Account(string number, string currency)
        {
            this.number = number;
            this.currency = currency;
        }

        public void Withdraw(double amount)
        {
            money -= amount;
        }

        public void Deposit(double amount)
        {
            money += amount;
        }

        public double Balance
        {
            get { return money;}
        }

        public string Currency
        {
            get { return this.currency; }
        }
    }
}